package com.hmall.config;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description UserFegin
 * @Author zhengyuan&junjun
 * @Date 2024-11-15
 */
/***
 *
 * fegin暴露接口
 * */
@FeignClient("userservice")
@RequestMapping("/address")
public interface UserFegin {
    @GetMapping("{id}")
    Address findAddressById(@PathVariable("id")Long id);


}
